package uk.ac.glasgow.demosocs.impl.electionmanager;

import java.util.ArrayList;
import java.util.List;

import uk.ac.glasgow.demosocs.Candidate;
import uk.ac.glasgow.demosocs.ElectionResult;

public class ElectionResultImpl implements ElectionResult {
	
	private List<Candidate> winners;
	
	
	

	public ElectionResultImpl(List<Candidate> winners) {
		super();
		this.winners = winners;
	}
	
	public ElectionResultImpl(){
		winners= new ArrayList<Candidate>();
	}

	@Override
	public List<Candidate> getWinningCandidates() {
		return winners;
	}

	public void addWinningCandidate(Candidate c){
		winners.add(c);
	}
}
